﻿using QuotingTool.Domain.DataAccess.Repositories;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;

namespace QuotingTool.Domain.DataAccess
{
    public class DatabaseAccess
    {
        private string connectionString;
        private string OraConnection;

        public SFRepository _SalesForce { get; private set; }
        public OracleRepository _OracleRepo { get; private set; }
        
        public DatabaseAccess()
        {
            connectionString = ConfigurationManager.ConnectionStrings["QuotingTool"].ToString();
            OraConnection = ConfigurationManager.ConnectionStrings["Ora"].ToString();
            _SalesForce = new SFRepository(connectionString);
            _OracleRepo = new OracleRepository(OraConnection);
           
        }
    }
}